﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.ProjectArchiving
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.ProjectArchiving;

    /// <summary>
    /// 项目归档记录
    /// </summary>
    public class ProjectArchiving_Map : EntityMapping<ProjectArchiving>
    {
        public ProjectArchiving_Map()
        {
            //归档操作用户
            ManyToOne(x => x.ArchiveUser, map =>
            {
                map.Column("UserId");
                map.NotNullable(true);
            });

            //所属项目
            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjectId");
                map.NotNullable(false);
            });

            Property(x => x.ArchiveFinishFlag, map =>
            {
                map.Length(100);
            });

            Property(x => x.ArchiveFinishDate, map =>
            {
            });

            Property(x => x.BidWinningNoticeIsComplete, map =>
            {
            });

            Property(x => x.EntrustmentAgreementIsComplete, map =>
            {
            });

            Property(x => x.OASystemIsInput, map =>
            {
            });

            Property(x => x.Remark, map =>
            {
                map.Length(10000000);
            });

            Property(x => x.SatisfactionSurveyeIsComplete, map =>
            {
            });

            Property(x => x.SatisfactionSurveyeValue, map =>
            {
            });

            Property(x => x.CentralInvestmentSystemIsInput, map =>
            {
            });

            Property(x => x.TransferDate, map =>
            {
            });

            Property(x => x.TransferUser, map =>
            {
                map.Length(20);
            });

            Property(x => x.Flowflag, map =>
            {

            });

            Property(x => x.opinion, map =>
            {

            });

            //Property(x => x.project_code, map =>
            //{
            //    map.Length(200);
            //});

            //Property(x => x.project_name, map =>
            //{
            //    map.Length(200);
            //});

            //Property(x => x.project_zjly, map =>
            //{
            //    map.Length(200);
            //});

            //Property(x => x.project_xmxz, map =>
            //{
            //    map.Length(200);
            //});

            //Property(x => x.project_bdwmc, map =>
            //{
            //    map.Length(200);
            //});

            //Property(x => x.project_kbsj, map =>
            //{
            //    map.Length(200);
            //});

            //Property(x => x.project_zbsj, map =>
            //{
            //    map.Length(200);
            //});
        }
    }
}
